package org.uva.streambuilder;

import java.applet.Applet;
import java.awt.Color;
import java.awt.Graphics;
import java.util.Observable;


public class SinkStreamModule extends StreamModule {


	
	public SinkStreamModule(Applet app, int x, int y) {
		super(app, x, y);
		this.defaultColor = new Color(175, 175, 175);
		this.selectColor = new Color(200, 20, 0, 200);
		this.name = "Sink";
		
	}
	
		
	public void update(Observable o, Object arg){
		if (arg instanceof Double)
		{
			double val = (Double) arg;
			
			setValue (val);
			
			
		}
		
	};

}
